import request from '@/utils/request'

// 查询学院荣誉列表
export function listHonors(query) {
  return request({
    url: '/honors/honors/list',
    method: 'get',
    params: query
  })
}

// 查询学院荣誉详细
export function getHonors(thId) {
  return request({
    url: '/honors/honors/' + thId,
    method: 'get'
  })
}

// 新增学院荣誉
export function addHonors(data) {
  return request({
    url: '/honors/honors',
    method: 'post',
    data: data
  })
}

// 修改学院荣誉
export function updateHonors(data) {
  return request({
    url: '/honors/honors',
    method: 'put',
    data: data
  })
}

// 删除学院荣誉
export function delHonors(thId) {
  return request({
    url: '/honors/honors/' + thId,
    method: 'delete'
  })
}
